import { request } from "../utils/request"

export const shareQuery = (params) => {
    return request({
        url: "/share/query",
        data: params,
        method: "GET"
    })
}

// 分享商品
export const sharedProduct = (params) => {
    return request({
        url: "/api/hotel/agent/sharedProduct",
        data: params,
        method: "POST"
    })
}

// 分享房间
export const sharedRoom = (params) => {
    return request({
        url: "/api/hotel/agent/sharedRoom",
        data: params,
        method: "POST"
    })
}

// 分享记录
export const record = (params) => {
    return request({
        url: "/api/share/record",
        data: params,
        method: "POST"
    })
}